package com.anycc.cloud.common.dto.json;

import java.util.List;

/**
 * list response
 *
 * @param <T> T
 */
public class ListResponse<T> implements Response {
    private String code;
    private String msg;
    private List<T> datas;

    public ListResponse(List<T> datas) {
        this.code = "1";
        this.msg = "";
        this.datas = datas;
    }

    public ListResponse(String code, String msg, List<T> datas) {
        this.code = code;
        this.msg = msg;
        this.datas = datas;
    }

    public List<T> getDatas() {
        return this.datas;
    }

    public String getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
